
namespace WinnerCMS.Common.MemcachedClient
{
	using System;
	using System.IO;

	/// <summary>
	/// Bridge class to provide nested Exceptions with IOException which has
	/// constructors that don't take Throwables.
	/// </summary>
    [Serializable]
    public class NestedIOException : IOException 
	{
		Exception _innerException;
        /// <summary>
        /// 
        /// </summary>
		public NestedIOException()
		{

		}

		/// <summary>
		/// Create a new <c>NestedIOException</c> instance.
		/// </summary>
		/// <param name="cause">The inner exception</param>
		public NestedIOException(Exception ex)
		{
			this._innerException = ex;
		}

		public NestedIOException(string message, Exception ex) 
			:base(message)
		{
			this._innerException = ex;
		}

		public override Exception GetBaseException()
		{
			return this._innerException;
		}

	}
}